#include "Slave.h"

Render render;

string Slave::getComputerName(){
    DWORD len = MAX_COMPUTERNAME_LENGTH + 1;
    char name[MAX_COMPUTERNAME_LENGTH + 1];
    GetComputerName(name, &len);
    return name;
}

int Slave::getMasterVolume() {
    return (int) (render.getVolumeLevel() * 100);
}

void Slave::setMasterVolume(int level) {
    render.setVolumeLevel(level);
}